package com.yzt.zhuju.dialog.adapter;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.module.LoadMoreModule;
import com.chad.library.adapter.base.viewholder.BaseViewHolder;
import com.yzt.zhuju.R;
import com.yzt.zhuju.network.entity.goods.RechargeBean;
import com.yzt.zhuju.widget.tuiview.TUILinearLayout;

/**
 * author : bob
 * date   : 2022/11/16
 * desc   : 钻石充值适配器
 */
public class DiamondRechargeAdapter extends BaseQuickAdapter<RechargeBean, BaseViewHolder> implements LoadMoreModule {

    private boolean dark;

    public DiamondRechargeAdapter() {
        super(R.layout.item_diamond_recharge);
    }

    @Override
    protected void convert(BaseViewHolder holder, RechargeBean item) {
        TUILinearLayout linearLayout = holder.findView(R.id.ll_container);
        linearLayout.setSelected(item.isCheck());
        holder.setText(R.id.tv_diamond, item.getCandyCoin() + "糖币");
        holder.setText(R.id.tv_money, "¥" + item.getPrice());
    }

    public void setDark(boolean dark) {
        this.dark = dark;
    }
}